//
// Created by Wirano on 2020/11/7.
//

#ifndef ANO_PORT_ANO_SCHEDULER_H
#define ANO_PORT_ANO_SCHEDULER_H

#include "stm32f4xx_hal.h"
#include "main.h"
#include "stdio.h"


typedef struct {
    void (*task_func)(void);

    uint16_t rate_hz;
    uint16_t interval_ticks;
    uint32_t last_run;
} sched_task_t;//任务调度结构体

void Scheduler_Setup(void);

void Scheduler_Run(void);

#endif //ANO_PORT_ANO_SCHEDULER_H
